/*+je4T/kSKRK6otN/DIel/5Pl822GUspnJ2eLNXUE9if5Kxvcq+oJg3HIuLy4zwWf*/
/*
 * @Author: xiahui 
 * @PageInfo: 合同控制范围
 * @Date: 2019-02-25 10:58:04 
 * @Last Modified by: xiahui
 * @Last Modified time: 2019-07-10 15:52:33
 */
import { AREA, FIELDS } from '../../constance';
import { showWarningInfo } from '../../../../../scmpub/scmpub/pub/tool/messageUtil';
import { getLangByResId } from '../../../../../scmpub/scmpub/pub/tool/multiLangUtil';

export default function(props) {
	let checkArr = props.table.getCheckedRows(AREA.listTableId);
	if (!checkArr || checkArr.length < 1) {
		showWarningInfo(null, getLangByResId(this, '4004PURDAILY-000058')); /* 国际化处理： 请选择数据*/
		return;
	}

	this.setState({
		pk: checkArr[0].data.values[FIELDS.pk_ct_pu].value,
		showControl: !this.state.showControl,
		isBatchControl: false
	});
}

/*+je4T/kSKRK6otN/DIel/5Pl822GUspnJ2eLNXUE9if5Kxvcq+oJg3HIuLy4zwWf*/